﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Snowdreamist.ComponentModel.MEF.Notification;

namespace SNSpirit.Service.Notification
{
    public class NotificationService : MEFNotificationService
    {
        #region singleton

        private static readonly object _syncRoot = new object();

        private static volatile NotificationService _instance = null;

        public static NotificationService Current
        {
            get
            {
                if (_instance == null)
                    lock (_syncRoot)
                        if (_instance == null)
                            _instance = new NotificationService();
                return _instance;
            }
        }

        #endregion singleton
    }
}